﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DreamBox.Admin
{
    public partial class Msg : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                if (Request.QueryString["mtype"] != null && Request.QueryString["msg"] != null && Request.QueryString["murl"] != null)
                {
                    MsgContent.Text = Request.QueryString["msg"];
                    if (Request.QueryString["mtype"] == "0")
                    {
                        MsgContent.Style.Value = "color:red";
                    }
                    else
                    {
                        MsgContent.Style.Value = "color:green";
                    }
                    MsgContent.Font.Size = 16;
                    ToSrc.NavigateUrl = Request.QueryString["murl"];

                    Response.Write("<script>function ToUrl(){window.location.href='" + Request.QueryString["murl"] + "';}setTimeout('ToUrl()',3000);</script>");
                }
            }
        }
    }
}